Cleanup diff-buffer-with-file.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Nov 2010 19:22:03 +0000 (14:22 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 22 Nov 2010 19:22:03 +0000 (14:22 -0500)
commit1fa744481a142e664a18c50e53731e96cdfca3d3
treec7dd7972ad84103499bb9ae89c54ea46275ee704
parent1f78b8b97a21b407ef4512c238cc56438cba15f4
Cleanup diff-buffer-with-file.
* lisp/vc/diff.el (diff-old-temp-file, diff-new-temp-file): Remove.
(diff-sentinel): Get them as arguments instead.
(diff-old-file, diff-new-file, diff-extra-args): Remove.
(diff-file-local-copy, diff-better-file-name): New funs.
(diff-no-select): Rename from diff-into-buffer.
Support buffers additionally to files.  Move `buf' arg.  Don't display buf.
Prefer closures to buffer-local variables.
(diff): Adjust accordingly.
(diff-buffer-with-file): Move from files.el.
* lisp/files.el (diff-buffer-with-file): Move to vc/diff.el.
(diff-buffer-internal): Remove.
(diff-buffer-buffer): Remove.
(save-some-buffers-action-alist): Use diff-no-select so as not to guess
the buffer name used, and so as not to mess up windows and frames.
lisp/ChangeLog
lisp/files.el
lisp/vc/diff.el